import {base,getOption} from './config'

// eslint-disable-next-line import/no-anonymous-default-export
export default {
    //注册账号，get
    async registerApi(params){
        const {account,code,password}=params
        const option=getOption('get')
        return await fetch(`${base}/check?email=${account}&code=${code}&password=${password}`,option
        ).then((response)=>{
            return response.json()
        }).then((body)=>{
            console.log(body)
            return body
        }).catch((err)=>{
            console.log('服务器注册出错啦',err)
        })
    }
}